﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using JQueryDTO;

// NOTE: If you change the class name "Service" here, you must also update the reference to "Service" in Web.config.
public class Service : IService
{
    public void DoWork(Person NewPerson)
    {
        NewPerson.Add();
    }
    public IList<Company> GetAllCompanies()
    {
        using (var context = new MGConsultingEntities())
        {
            return context.Company.Include("Methodology").ToList();
        }
    }

    public IList<Methodology> GetAllMethodologyByCompanyId(int companyId)
    {
        throw new System.NotImplementedException();
    }

    public IList<Roadmap> GetAllRoadMapByMethodologyId(int methodology)
    {
        throw new System.NotImplementedException();
    }

    public IList<Template> GetAllTemplateByMethodologyId(int methodology)
    {
        throw new System.NotImplementedException();
    }

}
